package com.fr.crf;

import java.io.IOException;

import com.hankcs.hanlp.model.crf.CRFNERecognizer;
import com.hankcs.hanlp.model.crf.CRFPOSTagger;
import com.hankcs.hanlp.model.crf.CRFSegmenter;


/**
 * @author 付荣
 * @version 创建时间：2018年4月11日 下午2:22:36
 */
public class CrfTrainTest {
	public static void main(String[] args) throws IOException {
//		System.out.println("---");
//		CRFSegmenter segmenter = new CRFSegmenter(null);
//        segmenter.train("E:\\data\\test\\name.txt", "E:\\data\\test\\segmenter.bin");
        CRFPOSTagger tagger = new CRFPOSTagger(null);
        tagger.train("E:\\data\\test\\name.txt", "E:\\data\\test\\tagger.bin");
        CRFNERecognizer recognizer =  new CRFNERecognizer(null);
        recognizer.train("E:\\data\\test\\name.txt", "E:\\data\\test\\recognizer.bin");
	}

}
